-- GENERATED SPELL FOR [Boss Copperplug] --


function spell0_9336(pUnit, Event) --@Bomb,n/a--
pUnit:FullCastSpellOnTarget(9143,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9336', 2000, 1)
end

function spell1_9336(pUnit, Event) --@Net,n/a--
pUnit:FullCastSpellOnTarget(6533,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9336', 2308, 1)
end

function Sorts_9336(pUnit, Event)
local choix_sorts_9336 = math.random(0, 1)
if choix_sorts_9336 == 0 then
pUnit:RegisterEvent('spell0_9336', 1, 1)
end
if choix_sorts_9336 == 1 then
pUnit:RegisterEvent('spell1_9336', 1, 1)
end
end

function mob9336_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_9336', math.random(1500, 3000), 1)
end

function mob9336_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9336_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9336_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(9336, 1, 'mob9336_Action')
RegisterUnitEvent(9336, 2, 'mob9336_Leave')
RegisterUnitEvent(9336, 3, 'mob9336_Kill')
RegisterUnitEvent(9336, 4, 'mob9336_Die')
